import request from '../utils/requestLogin'

export default {
    // 获取统计数据
    getStatistics() {
        return request.get('/api/statistics')
    },

    // 获取最新文章列表
    getLatestArticles(params: { limit: number }) {
        return request.get('/api/articles/latest', params)
    },

    // 获取最新评论列表
    getLatestComments(params: { limit: number }) {
        return request.get('/api/comments/latest', params)
    },

    // 获取访问趋势
    getVisitTrend(params: { days: number }) {
        return request.get('/api/statistics/visits', params)
    }
} 